package day6;

import java.util.Scanner;

public class ceshi3 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入学生人数");
		int renshu = scanner.nextInt();
		int []array = new int[renshu];
		  for (int i = 0; i < array.length; i++) {
			  System.out.println("请输入学生成绩");
			  int chengji = scanner.nextInt();
			  array[i] = chengji;
			
		} 
		int yibai = 0;
		int bashi = 0;
		int jiushi = 0;
		for (int i = 0; i < array.length; i++) {
			System.out.println(array[i]);
			if(array[i] == 100) {
			yibai++;
			
			} else if(array[i]/10 == 9) {
			jiushi++;
			
			} else if(array[i]/10 == 8) {
			bashi++;
			}
			}

		System.out.println("一百分的人数有"+yibai+"个人"+"九十多分的有 "+jiushi+"个人"+"八十多分有"+bashi+"个人");
	}

}
